Tables
Docnado Markdown Quick Reference
V1.0.0 last updated 3 weeks ago on 2018/10/12
A documentation project can often involve lots of tabular data, components with their pricing and order number, staff and their contact details etc. Luckily docnado supports tables in your document.
Tables
Separate columns wish a pipe character (|
) and rows with newlines. The head of the table is separated by lines of at least three dashes (---
) in each cell of the 2nd line of a table. You can use the (:
) character to left/right align each column.
More dashes can be used for readability.
| Table Heading One | Table Heading Two | Table Heading Three |
|:--------------------------------|:-----------------:|-------------------------:|
|Table Item | Table item two | Table item three |
| This | is | a row |
| Inside a table you can still use| _emphasis_ | and __strong emphasis__ |
Table Heading One | Table Heading Two | Table Heading Three |
---|---|---|
Table Item | Table item two | Table item three |
This | is | a row |
Inside a table you can still use | emphasis | and strong emphasis |
Most inline markdown syntax can still be used within a table including hyperlinks, emphasis and, inline code blocks.
Tables are not a part of the standard markdown specification, but docnado (and other markdown rendering tools) support this style as the de facto standard.
At the moment, tables defined inside a Markdown document are not stylable using style classes {: .my-table}
.
External Tables (CSV)
You can include tables from CSV files. These will be loaded and inserted into the Markdown.
![](assets/example.csv)
First Name | Last Name | Country | Age |
---|---|---|---|
Bob | Smith | United States | 24 |
Alice | Williams | Canada | 23 |
Malcolm | Jone | England | 22 |
Felix | Brown | USA | 23 |
Alex | Cooper | Poland | 23 |
Tod | Campbell | United States | 22 |
Derek | Ward | Switzerland | 25 |
Tables included from a .csv
file can have styles applied. For example, .full-width
makes the table stretch to fill the entire area.
![](assets/example.csv){: .full-width}
First Name | Last Name | Country | Age |
---|---|---|---|
Bob | Smith | United States | 24 |
Alice | Williams | Canada | 23 |
Malcolm | Jone | England | 22 |
Felix | Brown | USA | 23 |
Alex | Cooper | Poland | 23 |
Tod | Campbell | United States | 22 |
Derek | Ward | Switzerland | 25 |